package model;

import org.aspectj.weaver.ast.Or;

import java.io.Serializable;
import java.math.BigDecimal;

public class OrderProduct implements Serializable {
    private String id;
    private Product product;
    private Order order;
    private int num;
    private String title;
    private BigDecimal price;
    private BigDecimal totalFee;
    private String picPath;

    public OrderProduct() {
    }

    public OrderProduct(String id, Product product, Order order, int num, String title, BigDecimal price, BigDecimal totalFee, String picPath) {
        this.id = id;
        this.product = product;
        this.order = order;
        this.num = num;
        this.title = title;
        this.price = price;
        this.totalFee = totalFee;
        this.picPath = picPath;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Order getOrder() {
        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(BigDecimal totalFee) {
        this.totalFee = totalFee;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    @Override
    public String toString() {
        return "OrderProduct{" +
                "id='" + id + '\'' +
                ", product=" + product +
                ", order=" + order +
                ", num=" + num +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", totalFee=" + totalFee +
                ", picPath='" + picPath + '\'' +
                '}';
    }
}
